package com.yy;

import com.yy.pojo.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testStudent {
    @Test
    public void t1(){
        ApplicationContext context = new ClassPathXmlApplicationContext("container.xml");
        Student student = context.getBean("student", Student.class);
        student.show();
    }
}
